package entity;

import java.util.List;

/**
 * @Description: TODO
 * @author: 李展鹏
 * @date: 2024年01月19日18:38
 */
public class StorageRecord {
    private Integer id;     //主键ID
    private String srCode;  //入库记录编号
    private String goodsName;   //商品名称
    private String goodsDesc;   //商品描述
    private String goodsUnit;   //商品单位
    private String goodsCount;  //入库数量
    private String totalAmount; //入库商品总额
    private Integer payStatus;  //支付状态（1：未支付 2：已支付）
    private Integer createdUserId;  //创建人id
    private String createdTime;     //创建时间
    private Integer updatedUserId;  //修改人id
    private String updatedTime;     //修改时间
    private Integer supplierId;     //供货商ID
    private String supplierName;    //供货商名称
    private Supplier suppliers;      //供货商实体类

    private List<Supplier> suppliersList; //供货商列表实体类

    /**
     * 类的无参构造
     */
    public StorageRecord() {
    }

    /**
     * 类的带参构造
     * @param id
     * @param srCode
     * @param goodsName
     * @param goodsDesc
     * @param goodsUnit
     * @param goodsCount
     * @param totalAmount
     * @param payStatus
     * @param createdUserId
     * @param createdTime
     * @param updatedUserId
     * @param updatedTime
     * @param supplierId
     * @param supplierName
     * @param suppliers
     * @param suppliersList
     */
    public StorageRecord(Integer id, String srCode, String goodsName, String goodsDesc, String goodsUnit, String goodsCount, String totalAmount, Integer payStatus, Integer createdUserId, String createdTime, Integer updatedUserId, String updatedTime, Integer supplierId, String supplierName, Supplier suppliers, List<Supplier> suppliersList) {
        this.id = id;
        this.srCode = srCode;
        this.goodsName = goodsName;
        this.goodsDesc = goodsDesc;
        this.goodsUnit = goodsUnit;
        this.goodsCount = goodsCount;
        this.totalAmount = totalAmount;
        this.payStatus = payStatus;
        this.createdUserId = createdUserId;
        this.createdTime = createdTime;
        this.updatedUserId = updatedUserId;
        this.updatedTime = updatedTime;
        this.supplierId = supplierId;
        this.supplierName = supplierName;
        this.suppliers = suppliers;
        this.suppliersList = suppliersList;
    }

    /**
     * 类的带参构造
     * @param srCode
     * @param goodsName
     * @param goodsDesc
     * @param goodsUnit
     * @param goodsCount
     * @param totalAmount
     * @param payStatus
     * @param createdUserId
     * @param createdTime
     * @param updatedUserId
     * @param updatedTime
     * @param supplierId
     * @param supplierName
     * @param suppliers
     * @param suppliersList
     */
    public StorageRecord(String srCode, String goodsName, String goodsDesc, String goodsUnit, String goodsCount, String totalAmount, Integer payStatus, Integer createdUserId, String createdTime, Integer updatedUserId, String updatedTime, Integer supplierId, String supplierName, Supplier suppliers, List<Supplier> suppliersList) {
        this.srCode = srCode;
        this.goodsName = goodsName;
        this.goodsDesc = goodsDesc;
        this.goodsUnit = goodsUnit;
        this.goodsCount = goodsCount;
        this.totalAmount = totalAmount;
        this.payStatus = payStatus;
        this.createdUserId = createdUserId;
        this.createdTime = createdTime;
        this.updatedUserId = updatedUserId;
        this.updatedTime = updatedTime;
        this.supplierId = supplierId;
        this.supplierName = supplierName;
        this.suppliers = suppliers;
        this.suppliersList = suppliersList;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getSrCode() {
        return srCode;
    }

    public void setSrCode(String srCode) {
        this.srCode = srCode;
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public String getGoodsDesc() {
        return goodsDesc;
    }

    public void setGoodsDesc(String goodsDesc) {
        this.goodsDesc = goodsDesc;
    }

    public String getGoodsUnit() {
        return goodsUnit;
    }

    public void setGoodsUnit(String goodsUnit) {
        this.goodsUnit = goodsUnit;
    }

    public String getGoodsCount() {
        return goodsCount;
    }

    public void setGoodsCount(String goodsCount) {
        this.goodsCount = goodsCount;
    }

    public String getTotalAmount() {
        return totalAmount;
    }

    public void setTotalAmount(String totalAmount) {
        this.totalAmount = totalAmount;
    }

    public Integer getPayStatus() {
        return payStatus;
    }

    public void setPayStatus(Integer payStatus) {
        this.payStatus = payStatus;
    }

    public Integer getCreatedUserId() {
        return createdUserId;
    }

    public void setCreatedUserId(Integer createdUserId) {
        this.createdUserId = createdUserId;
    }

    public String getCreatedTime() {
        return createdTime;
    }

    public void setCreatedTime(String createdTime) {
        this.createdTime = createdTime;
    }

    public Integer getUpdatedUserId() {
        return updatedUserId;
    }

    public void setUpdatedUserId(Integer updatedUserId) {
        this.updatedUserId = updatedUserId;
    }

    public String getUpdatedTime() {
        return updatedTime;
    }

    public void setUpdatedTime(String updatedTime) {
        this.updatedTime = updatedTime;
    }

    public Integer getSupplierId() {
        return supplierId;
    }

    public void setSupplierId(Integer supplierId) {
        this.supplierId = supplierId;
    }

    public String getSupplierName() {
        return supplierName;
    }

    public void setSupplierName(String supplierName) {
        this.supplierName = supplierName;
    }

    public Supplier getSuppliers() {
        return suppliers;
    }

    public void setSuppliers(Supplier suppliers) {
        this.suppliers = suppliers;
    }

    public List<Supplier> suppliersList() {
        return suppliersList;
    }

    public void suppliersList(List<Supplier> supplierslist) {
        this.suppliersList = supplierslist;
    }

    @Override
    public String toString() {
        return "StorageRecord{" +
                "id=" + id +
                ", srCode='" + srCode + '\'' +
                ", goodsName='" + goodsName + '\'' +
                ", goodsDesc='" + goodsDesc + '\'' +
                ", goodsUnit='" + goodsUnit + '\'' +
                ", goodsCount='" + goodsCount + '\'' +
                ", totalAmount='" + totalAmount + '\'' +
                ", payStatus=" + payStatus +
                ", createdUserId=" + createdUserId +
                ", createdTime='" + createdTime + '\'' +
                ", updatedUserId=" + updatedUserId +
                ", updatedTime='" + updatedTime + '\'' +
                ", supplierId=" + supplierId +
                ", supplierName='" + supplierName + '\'' +
                ", suppliers=" + suppliers +
                ", suppliersList=" + suppliersList +
                '}';
    }
}
